package com.github.lee.core.common


import android.content.Context
import android.content.Intent

fun normalIntent(context: Context, clazz: Class<*>): Intent =
    Intent(context, clazz)


fun cleanTaskIntent(context: Context, clazz: Class<*>): Intent {
    val intent = normalIntent(context, clazz)
    intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK)
    return intent
}

fun newTaskIntent(context: Context, clazz: Class<*>): Intent {
    val intent = normalIntent(context, clazz)
    intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK)
    return intent
}